<template>
    <ESButton type="primary" @click="showRef = !showRef">{{ text }}</ESButton>
    <ESFold :show="showRef">
        <slot></slot>
    </ESFold>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { ESButton, ESFold } from '../packages/index';
withDefaults(defineProps<{ text?: string }>(), { text: '测试' });
const showRef = ref(false)

</script>
